package org.jground.rx.ui.zk.viewControl;

import org.jground.rx.RXView;
import org.jground.rx.ui.IUIAttribute;
import org.jground.rx.ui.zk.UIFrame;
import org.zkoss.zk.ui.Component;

public class UIAttributeSimple extends UIAttributeBase {

    public UIAttributeSimple() {
        super();
    }

    private UIAttributeSimple(UIFrame uiFrame, RXView moControl) {
        super(uiFrame, moControl);
        super.uiAttributeView = UIAttributeViewControlFactory.create(uiFrame, moControl);
        super.addToControlComponent(uiAttributeView.getComponent());
    }

    public IUIAttribute<Component,UIFrame> createNew(UIFrame uiFrame, RXView moControl) {
        return new UIAttributeSimple(uiFrame, moControl);
    }

}
